package com.bw.lib_miv

import com.google.gson.Gson
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.RequestBody

open class BaseRepo {
    fun mapToBody(map: Map<String, Any>) =
        RequestBody.create("application/json".toMediaTypeOrNull(), Gson().toJson(map))
}